import request from '@/utils/request'

export const login = (data: {
  username: string,
  password: string
}) => {
  return request<{ token: string }>({
    method: 'post',
    url: '/login',
    data
  })
}